package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件对象 om_file
 *
 * @author ruoyi
 * @date 2023-11-26
 */
@Data
public class OmFile extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String fileName;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    private String fileUrl;

    /**
     * 上传人
     */
    @Excel(name = "上传人")
    private String createUser;

    /**
     * 任务id
     */
    @Excel(name = "任务id")
    private int dutyId;

    @Excel(name = "接受id")
    private int acceptId;

    private String deptId;

    @Excel(name = "文件类型")
    private String fileType;

    @Excel(name = "文件类型")
    private String userName;

    @Excel(name = "文件类型")
    private String deptName;


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateUser() {
        return createUser;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("fileName", getFileName()).append("fileUrl", getFileUrl()).append("createUser", getCreateUser()).append("dutyId", getDutyId()).toString();
    }
}
